from socket import *

address='10.109.3.100'
port=12345
buffsize=1024
s = socket(AF_INET, SOCK_STREAM)
s.bind((address,port))
s.listen(1)
while True:
    clientsock,clientaddress=s.accept()
    print('connect from:',clientaddress)
    while True:  
        recvdata=clientsock.recv(buffsize).decode('utf-8')
        if recvdata=='exit' or not recvdata:
            break
        senddata=recvdata+'from sever'
#        clientsock.send(senddata.encode())
    clientsock.close()
s.close()
